package com.wetsoft.base

import scala.collection.mutable.ArrayBuffer

object ScalaBaseTest {


  def main(args: Array[String]): Unit = {

    val arr0 = new Array[Int](5)
    println(arr0)
    val arr = Array[Int](1,2,3,4,5)
    println(arr)

    for (elem <- arr) {
      println(elem)
    }


    val buffer = ArrayBuffer[Int]()
    println(buffer)

    buffer.+=(1)
    buffer.+=(2)
//    for (elem <- buffer) {
//      println(elem)
//    }
    println(buffer.toArray)


  }


}
